package com.tn.service.rpm.mq;

import com.tn.mqtt.AbstractBaseCallback;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName RmqSyncMQ
 * @Description TODO
 * @Author Yezhongzhu
 * @Date 2021/12/27 19:27
 * @Version v1.0
 **/
@Component
@Slf4j
public class RpmSyncMQ extends AbstractBaseCallback {
    private final static  String topic = "rpm_serve/async1";

    @Override
    public void consumer(String topic, String msg) {
        log.info("async1 topic:{}, 消息是 msg:{}",topic,msg);
    }

    @Override
    protected AbstractBaseCallback getClazz() {
        return this;
    }

    @Override
    protected String getTopic() {
        return topic;
    }
}
